var mongoose = require('./mongoose.js');
var Curd = require('./curd.js');
var schema = {
    _id: {
        type: String,
        unique: true
    },
    // 点评内容
    content: String,
    // 点评人信息
    ownerId: String,
    // 点评对应的露营地ID
    campId:String,
    // 评论日期
    createTime: String,
    // 上传图片路径
    picPaths: Array,
    // 评分
    score:Number
}
var model = mongoose("comment", schema, "comment").model;

module.exports = model;
